﻿using DapperExtensions;

namespace EasyIot.Model
{
    [Table("Device")]
    public class DeviceModel : Entity
    {
        /// <summary>
        /// 设备编码
        /// </summary>
        public string DeviceCode { get; set; }
        /// <summary>
        /// 设备名称
        /// </summary>
        public string DeviceName { get; set; } 
        
        /// <summary>
        /// 上线时间
        /// </summary>
        public string LastActive { get; set; }

        /// <summary>
        /// 分组名称
        /// </summary>
        [Computed]
        public string GroupName { get; set; } 

        /// <summary>
        /// 编码(修改之前)
        /// </summary>
        [Computed]
        public string DeviceCode_EditBefore { get; set; }
    }
}
